package com.slmxz.tms.document.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.slmxz.tms.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 车辆信息实体对象
 * @author sunyao
 * @Date 2024-11-10
 */
@Getter
@Setter
@TableName("tbl_truck")
public class Truck extends BaseEntity {

    @TableId(value = "id")
    private Long id;
    /**
     * 车牌号
     */
    private String truckNo;
    /**
     * 车型编码
     */
    private String truckModeCode;
    /**
     * 车辆品牌
     */
    private String truckBrand;
    /**
     * 车辆识别代码
     */
    private String truckIdentity;
    /**
     * 车辆注册时间
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registerTime;
    /**
     * 车辆类型1=自有车辆，2=外协车辆
     */
    private Integer truckType;
    /**
     * 备注
     */
    private String remark;
    /**
     * GPS ID
     */
    private String gpsId;
    /**
     * 逻辑删除标识(0-未删除 1-已删除)
     */
    private Integer isDeleted;
}
